#include "gyroscope.h"

void Gyroscope::setModel(const std::string& model) {
    this->model = model;
}

void Gyroscope::setManufacturer(const std::string& manufacturer) {
    this->manufacturer = manufacturer;
}

void Gyroscope::print() const {
    std::cout << "陀螺仪型号: " << model << std::endl;
    std::cout << "制造商: " << manufacturer << std::endl;
}

void Gyroscope::save(std::ofstream& out) const {
    out << "陀螺仪型号: " << model << std::endl;
    out << "制造商: " << manufacturer << std::endl;
}